package order

import (
	"gitee.com/cuishaop/gogin/internal/pkg/core"
	"gitee.com/cuishaop/gogin/internal/repository/redis"
	"gitee.com/cuishaop/gogin/internal/repository/sqlite"
	"gitee.com/cuishaop/gogin/internal/repository/sqlite/order"
)

var _ Service = (*service)(nil)

type Service interface {
	i()

	// Create(ctx core.Context, createData *CreateCronTaskData) (id int32, err error)
	// Modify(ctx core.Context, id int32, modifyData *ModifyCronTaskData) (err error) //修改
	PageList(ctx core.Context, searchData *SearchData) (listData []*order.Order, err error)
	PageListCount(ctx core.Context, searchData *SearchData) (total int64, err error)
}

type service struct {
	db    sqlite.Repo
	cache redis.Repo
}

func New(db sqlite.Repo, cache redis.Repo) Service {
	return &service{
		db:    db,
		cache: cache,
	}
}

func (s *service) i() {}
